Skip to content

SW-881: Show dataset ID in Main information section#670

Merged
j-maynard merged 2 commits into
mainfrom
SW-881
Jun 12, 2026
Merged

SW-881: Show dataset ID in Main information section#670
j-maynard merged 2 commits into
mainfrom
SW-881

Conversation

@j-maynard

@j-maynard j-maynard commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds dataset ID row at the bottom of the Main information (KeyInfo) section on the About this dataset tab in the consumer view
  • Adds bilingual translations: "Dataset ID" (EN) / "ID y set ddata" (CY)
  • Guarded on props.datasetId so it degrades gracefully if the value is absent

Test plan

  • Open a published dataset and click About this dataset tab
  • Confirm "Dataset ID" row appears at the bottom of the Main information summary list
  • Check the Welsh language view shows "ID y set ddata"
  • Confirm the row is absent on any page that renders this tab without a dataset ID

Copilot AI review requested due to automatic review settings June 11, 2026 08:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Dataset ID row to the Main information (KeyInfo) summary list on the consumer dataset “About this dataset” tab, using the existing shared view component and bilingual i18n keys. The row is conditionally rendered so pages without a datasetId continue to work without changes.

Changes:

  • Render a new “Dataset ID” summary-list row in KeyInfo when props.datasetId is present.
  • Add new i18n keys for the label in English and Welsh.
  • Extend the consumer AboutTab props to accept an optional datasetId (and forward it via prop spreading).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/shared/views/components/dataset/KeyInfo.jsx Conditionally renders a new summary-list row showing datasetId.
src/shared/i18n/en.json Adds English translation for the new “Dataset ID” label key.
src/shared/i18n/cy.json Adds Welsh translation for the new “Dataset ID” label key.
src/consumer/views/dataset/components/AboutTab.tsx Adds optional datasetId to props (forwarded into KeyInfo via {...props}).

@easternbloc easternbloc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@j-maynard j-maynard merged commit 0f5efd3 into main Jun 12, 2026
6 checks passed
@j-maynard j-maynard deleted the SW-881 branch June 12, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants